package com.isdepci.project.result.domain;

import com.isdepci.framework.aspectj.lang.annotation.Excel;
import com.isdepci.framework.web.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import java.math.BigDecimal;

/**
 * 按温室气体种类划分的电力排放对象 tpf_electricity_split
 *
 * @author isdepci
 * @date 2023-09-05
 */
public class ElectricitySplit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 温室气体类型(1-二氧化碳（CO2）/2-甲烷（CH4)/3-一氧化二氮(N2O)/4-全氟化碳(PFCs)/5-氢氟碳化物(HFCs)/
6-六氟化硫(SF6)/7-三氟化氮(NF3) */
    @Excel(name = "温室气体类型(1-二氧化碳", readConverterExp = "C=O2")
    private Integer ghgType;

    /** 公吨CO2e */
    @Excel(name = "公吨CO2e")
    private BigDecimal metricTonnesCo2e;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setGhgType(Integer ghgType)
    {
        this.ghgType = ghgType;
    }

    public Integer getGhgType()
    {
        return ghgType;
    }
    public void setMetricTonnesCo2e(BigDecimal metricTonnesCo2e)
    {
        this.metricTonnesCo2e = metricTonnesCo2e;
    }

    public BigDecimal getMetricTonnesCo2e()
    {
        return metricTonnesCo2e;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ghgType", getGhgType())
            .append("metricTonnesCo2e", getMetricTonnesCo2e())
            .toString();
    }
}
